package com.ll.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ll.common.utils.PageUtils;
import com.ll.gulimall.product.entity.AttrEntity;
import com.ll.gulimall.product.vo.AttrAttrGroupRelationVo;
import com.ll.gulimall.product.vo.AttrRespVo;
import com.ll.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author liliang
 * @email liliang@gmail.com
 * @date 2020-07-30 23:16:45
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryPageBaseList(Map<String, Object> params, Long catelogId, String type);

    AttrRespVo getAttrInfo(Long attrId);

    void updateAttr(AttrVo attr);

    List<AttrEntity> getRelation(Long attrgroupId);

    void deleteBatchRelation(AttrAttrGroupRelationVo[] vo);

    PageUtils getNotRelation(Map<String, Object> params, Long attrgroupId);

    List<Long> selectSearchAttr(List<Long> attrIds);

}


